package com.youmu.xxessj.ac

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.bumptech.glide.Glide
import com.youmu.xxessj.R
import com.youmu.xxessj.ut.HOME
import com.youmu.xxessj.ut.Utils
import io.rong.imkit.RongIM
import kotlinx.android.synthetic.main.activity_sjdel.*
import kotlinx.android.synthetic.main.heard.*

class sjdelActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_sjdel)
        init_heard()
    }
    fun init_heard(){
        heard_back.setOnClickListener {
            finish()
        }
        heard_ok.visibility = View.GONE
        heard_title.text = "书籍详情"

        sj_bookname.text = intent.getStringExtra("bookname")
        sj_bookcb.text = intent.getStringExtra("bookcb")
        sj_bookzz.text = intent.getStringExtra("bookzz")
        Glide.with(this@sjdelActivity).load(HOME +intent.getStringExtra("bookimg")).into(sj_file)
        jl.setOnClickListener {
            RongIM.getInstance().startChatRoomChat(this,"2",false)
        }
    }
}
